import React from "react";
import '../css/login.css'

class Login extends React.Component{
    constructor(props){
        super(props);

    }

    render(){
        return(
            <div  className="longin_dl">
            <div className="longin_dl_hz">
                <div><h3>登录</h3></div>
                <div>
                <div>账号：<input type="text"  ref="text"/></div>
                <div>密码：<input type="text"  ref="mi"/></div>
                <button onClick={()=>{
                  var info={
                      text:this.refs.text.value,
                      mi:this.refs.mi.value,
                  }
                  console.log(info)
                  this.props.history.push({pathname:"/",state:info});
                }}>登录</button>
                
                </div>
            </div>

            </div>
        )
    }
}

export default Login;